<?php

/**

 * 物流自提服务站父类

 *

 * * @网店运维 (c) 2015-2018 ShopWWI Inc. (http://www.shopwwi.com)

 * @license    http://www.shopwwi.c om

 * @link       交流群号：111731672

 * @since      网店运维提供技术支持 授权请购买shopnc授权

 */







defined('ByShopWWI') or exit('Access Invalid!');



class BaseChainControl{

    /**

     * 构造函数

     */

    public function __construct(){

        /**

         * 读取通用、布局的语言包

         */

        Language::read('common');

        /**

         * 设置布局文件内容

         */

        Tpl::setLayout('chain_layout');

        /**

         * SEO

         */

        $this->SEO();

        /**

         * 获取导航

         */

        Tpl::output('nav_list', rkcache('nav',true));
$sj= Model('store')->getStoreInfoByID($_SESSION['chain_store_id']);
		$model_member = Model('member');
        $member_info = $model_member->getMemberInfo(array('member_id'=>$sj['member_id']));
		
	        Tpl::output('member_info',$member_info);
    }

    /**

     * SEO

     */

    protected function SEO() {

        Tpl::output('html_title','门店系统      ' . C('site_name') . '- Powered by ShopNC');

        Tpl::output('seo_keywords','');

        Tpl::output('seo_description','');

    }

}

/**

 * 操作中心

 * @author Administrator

 *

 */

class BaseChainCenterControl extends BaseChainControl{

    public function __construct() {

        parent::__construct();

        if ($_SESSION['chain_login'] != 1) {

            @header('location: index.php?act=login');die;

        }

    }

}

/**

 * 操作中心

 * @author Administrator

 *

 */

class BaseAccountCenterControl extends BaseChainControl{

    public function __construct() {

        parent::__construct();



        Tpl::setLayout('login_layout');

    }

}

